package com.example.springbook.service;

import com.example.springbook.bean.Borrow;

import java.util.List;

public interface BorrowService {
    boolean addBorrow(Borrow borrow);

    boolean updateBorrow(int id);

    boolean deleteBorrow(int id);

    List<Borrow> findAllBorrow();

    List<Borrow> findBorrowByBook(int bookid);

    List<Borrow> findBorrowByUser(int userid);
}
